package com.anasoft.os.s4j;

import com.thoughtworks.selenium.Selenium;

/**
 * Listener which gets notified upon events related to the current
 * {@link Selenium} session.
 * 
 * @see SeleniumRunnerLogic
 * 
 * @author vojtech.szocs
 */
public interface SeleniumSessionListener {

    /**
     * Called after a new {@link Selenium} session has been started.
     * 
     * @param selenium Selenium API for executing commands on the current
     * session.
     */
    void afterSessionStarted(Selenium selenium);
    
    /**
     * Called before the current {@link Selenium} session is stopped.
     * 
     * @param selenium Selenium API for executing commands on the current
     * session.
     */
    void beforeSessionStopped(Selenium selenium);
    
}
